let navButtonList=document.getElementsByClassName('nav-a-box')[0].children
for(let i=0;i<navButtonList.length;i++){
    let nav=navButtonList[i]
    nav.addEventListener('click',()=>{
        setNavButtonStyle(i)
    })
}
function setNavButtonStyle(index){
    for(let i=0;i<navButtonList.length;i++){
        let nav=navButtonList[i]
        nav.style.backgroundColor="white"
        nav.style.color="rgb(81, 80, 80)"
    }
    navButtonList[index].style.backgroundColor="#c1292e"
    navButtonList[index].style.color="white"
}